
package results;

import objects.Station;

/**
 * Monitors the reachRate of a station
 * 
 * @author Guillaume
 * @created June 8, 2004
 */

public class ProbeComReachRate extends ProbeCom {

	/** Property name monitored by the probe */
	private static final String PROPERTY_NAME = "ProbeComReachRate";

	/** Probe description */
	private static final String PROBE_DESCRIPTION = "";
	

	/**
	 * @param t
	 * @param probeName probe name
	 */
	public ProbeComReachRate(Station t, String probeName) {
		super(DEPL_LOOP,t, probeName);
	}

	/**
	 * Monitors the <code>reach rate</code> of a station
	 * @see Results.Probe#getValue()
	 */
	protected Object getValue() {
	Station m = (Station) _linkedStation;
	return new Double(m.getReachRate());
	}

	/**
	 * Get the property Name
	 * @return property name
	 * @see Results.Probe#getPropertyName()
	 */
	public String getPropertyName() {
		return PROPERTY_NAME;
	}

	/**
	 * Get the descitption of the probe
	 * @return probe description
	 * @see Results.Probe#getProbeDescription()
	 */
	public String getProbeDescription() {
		return PROBE_DESCRIPTION;
	}

	public static void main(String[] args) {
	}
}
